/*
day50
2019.10.17
*/
#include<stdlib.h>
#include<stdio.h>

struct TreeNode{
	int val;
	struct TreeNode *left;
	struct TreeNode *right;
};


bool isSameTree(struct TreeNode* p, struct TreeNode* q)
{
	if(!p&&!q) return true;
	
	if(!p&&q||p&&!q) return false;
	
	return isSameTree(p->left,q->left)&&isSameTree(p->right,q->right);
}


int main()
{
	return 0;
}
